from building import *

cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [] 

CPPPATH.append(cwd)

if GetDepend('SUPPORT_EEPROM_AT24'):
    src += Glob('Eeprom/Eeprom_AT24.c') 
if GetDepend('SUPPORT_EEPROM_AVR'):
    src += Glob('Eeprom/Eeprom_AVR.c') 
if GetDepend('SUPPORT_EEPROM_PIC16F18'):
    src += Glob('Eeprom/Eeprom_Pic16F18.c') 
elif GetDepend('SUPPORT_EEPROM_PIC'):
    src += Glob('Eeprom/Eeprom_Pic.c') 

if GetDepend('SUPPORT_FLASH_S'):
    src += Glob('Eeprom/Eeprom_FlashS.c') 
if GetDepend('SUPPORT_FLASH_M'):
    src += Glob('Eeprom/Eeprom_FlashM.c')     
if GetDepend('SUPPORT_FLASH_D'):
    src += Glob('Eeprom/Eeprom_FlashD.c') 
if GetDepend('SUPPORT_FLASH_DF'):
    src += Glob('Eeprom/Eeprom_FlashDF.c') 

LOCAL_CCFLAGS = ''
# LOCAL_CCFLAGS += ' -O0'

group = DefineGroup('Eeprom', src, depend=[''], CPPPATH=CPPPATH, LOCAL_CCFLAGS=LOCAL_CCFLAGS)

Return('group')
